/*
 * Tower.cs
 *
 * Created on November 24, 2007, 3:30 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * Copyright (C) 2010       Mathijs Miermans
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General License for more details.
 * 
 * You should have received a copy of the GNU General License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

using System.Windows.Controls;

using HexTD.hex;
using HexTD.util;
using HexTD.tower;

namespace HexTD.tower
{
	public interface Tower
	{
		TowerFactory.type getType();

		void doTick(int gameTime);
		void resetScale();
		void paint(Canvas g2, int gameTime);
		void paintEffects(Canvas g2, int gameTime);
		void setSelected(bool selected);

		string getStatusString();
		string getInfoString();
		PanelTowerSettings getButtons();

		bool canUpgrade();
		void doUpgrade();
		int getUpgradePrice();
		int getSellPrice();

		float getRangeBase();
		float getRangeCurrent();

		void setHex(Hex hex);
		Hex getHex();

		int getMode(int m);
		int nextMode(int m);
		bool setMode(int m, int v);
		void registerTower(Tower t);
		void unregisterTower(Tower t);
		void doCleanup();

		void addTowerChangeListener(TowerChangeListener l);
		void removeTowerChangeListener(TowerChangeListener l);
	}
}